package cn.com.cifi.mars.web.action.sys;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 
 * @author Administrator
 *
 */
@Api(tags = {"系统管理"})
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/sys/log")
public interface ISysLogController {

		 @ApiOperation(value = "分页查询操作日志", notes = "分页查询操作日志")
		 @GetMapping(value = "logPage")
		 public R<String> getLogPage(
		            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
		            @ApiParam(value = "当前第几页", required = true, defaultValue = "1") @RequestParam(value = "current") String current,
		            @ApiParam(value = "每页条数", required = true, defaultValue = "2") @RequestParam(value = "pageSize") String pageSize,
		            @ApiParam(value = "访问来源", required = false) @RequestParam(value = "source", defaultValue = "") String source,
		            @ApiParam(value = "操作事件", required = false) @RequestParam(value = "event", defaultValue = "") String event,
		            @ApiParam(value = "标题", required = false) @RequestParam(value = "title", defaultValue = "") String title,
		            @ApiParam(value = "内容", required = false) @RequestParam(value = "content", defaultValue = "") String content,
		            @ApiParam(value = "日志类型", required = false) @RequestParam(value = "type", defaultValue = "") String type);
		 	 
}
